<template>
  <el-form label-width="120px">
    <el-form-item label="企业名称">
      <el-input v-model="companyInfo.name" disabled />
    </el-form-item>
    <el-form-item label="公司地址">
      <el-input v-model="companyInfo.companyAddress" disabled />
    </el-form-item>
    <el-form-item label="公司电话">
      <el-input v-model="companyInfo.companyPhone" disabled />
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input v-model="companyInfo.mailbox" disabled />
    </el-form-item>
    <el-form-item label="备注">
      <el-input v-model="companyInfo.remarks" disabled />
    </el-form-item>
  </el-form>
</template>

<script>
import { company } from '@/api/setting.js'
export default {
  data() {
    return {
      companyInfo: ''
    }
  },
  //   调用并渲染
  async created() {
    const res = await company(this.$store.state.user.userInfo.companyId)
    this.companyInfo = res.data
    console.log('企业信息', res)
  }
}
</script>

<style></style>
